<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<body>
    <h2>登录</h2>
<form action="${pageContext.request.contextPath}/login" method="post">
    <div>${error}</div> <br>
    账号：<input type="usercode" name="usercode"/> <br>
    密码：<input type="password" name="password"/> <br> <br>
    <button type="submit" class="inputButton" value="" >登录</button>
    <button type="button" class="inputButton" onclick="jumpRe()">注册</button>
    <button type="button" class="inputButton" onclick="adminLogin()">管理员登录</button>
</form>
<script type="text/javascript">
			function jumpRe(){
			 window.location.href="register.jsp";
			}
</script>
<script type="text/javascript">
			function adminLogin(){
			 window.location.href="AdminLogin.jsp";
			}
</script>
</body>
</html>
